//
//  ClassificationViewController.swift
//  SLQuickReader
//
//  Created by ALin on 2017/8/2.
//  Copyright © 2017年 ALin. All rights reserved.
//

import UIKit
import RxCocoa
import RxSwift

class ClassificationViewController: BaseTableViewController {
    
    let viewModel = BookstoreViewModel()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        viewModel.bind(to: tableView)
        
        NotificationCenter.default.rx.notification(Notification.Name(rawValue: BookStoreTapStatisticsNotify)).subscribe(onNext: { notify in
            guard let title = notify.userInfo?[UserInfo] else{
                return
            }
            print(title)
        }).disposed(by: disposBag)
    }
    
    override func customSetupTabelView() {
        tableView.register(StatisticsCell.self, forCellReuseIdentifier: "cell")
    }
}
